package com.api.demo.entities;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;


@SuppressWarnings("serial")
//@AllArgsConstructor
@NoArgsConstructor
/**
 * 每个变量的getter和setter
 */
@Data
/**
 * 链式风格访问
 */
@Accessors(chain = true)
public class Dept implements Serializable {
//    @Id/**/
    private Long deptno;
    private String dname;
    private String dp_source;//来自哪个数据库


    public Dept(String dname) {
        this.dname = dname;
    }
}
